<style type="text/css">
	header {
        font-size: .8em;
    }
    .gh-gl {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 80%;
        text-align: center;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    .gh-gl-item {
        display: block;
        margin-bottom: .2em;
        padding-top: .5em;
        padding-bottom: .5em;
        background-color: rgba(255, 255, 255, .8);
    }
    .gh-tip {
        position: absolute;
        top: 0;
        left: 0;
    }
    .pr-copyright {
        width: 100%;
        margin-bottom: 48px;
        padding: 0.8em;
    }
    .ellipsis {
        padding-top: 1px;
    }
</style>
<header class="gh-tip flex-row from-bar">
    <div class="row-item">
        <eq name="user.subscribe" value="0">
            <notempty name="fromUser">
                <notempty name="fromUser.face">
                    <div class="gh-tip-face fl">
                        <img class="w100" src="{$fromUser.face}" alt="" style="width:100px">
                    </div>
                </notempty>
                <p class="ellipsis">来自 {$fromUser.nickname} 的推荐</p>
                <p class="ellipsis">{$config.unsubscribe_text|default="关注我们，获取更多优惠"}</p>
            </notempty>
            <else/>
            <notempty name="user">
                <notempty name="user.face">
                    <div class="gh-tip-face fl">
                        <img class="w100" src="{$user.face}" alt="">
                    </div>
                </notempty>
                <p class="ellipsis">{$user.nickname}，感谢您的关注</p>
                <p class="ellipsis">{$config.subscribed_text|default="购买后分享给朋友，获取分享积分"}</p>
            </notempty>
        </eq>
    </div>

    <if condition="!$user['subscribe']">
        <a href="{$config.subscribe_url}" class="btn btn-theme">关注我们</a>
        <else/>
        <a href="{:url(null, 'DisShop', 'my', 'sid='.$sid)}" class="btn btn-theme">个人中心</a>
    </if>
</header>